﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            InitHomeMenu();
        }
    }

    private void InitHomeMenu()
    {
        CCommon comm = new CCommon();
        DataTable dt = comm.ReadBySort("1");
        string img = "";
        if (null != dt)
        {
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                img += "<img style=\"display:none;\" id=\"tech" + i.ToString() + "img\" src=\"" + dt.Rows[i]["content"].ToString() + "\" alt=\"\" />";
            }
        }
        this.ltl1.Text = img;
    }
}